package com.auxgroup.hr.front.site.co.common;

import com.auxgroup.hr.front.commons.BaseRetCode;
import com.auxgroup.hr.front.commons.vo.BaseResponseVO;
import com.auxgroup.hr.front.dao.domain.PsCSchoolType;
import com.auxgroup.hr.front.dao.domain.PsCountryTbl;
import com.auxgroup.hr.front.dozer.IObjectMapper;
import com.auxgroup.hr.front.service.personnal.CountryTblService;
import com.auxgroup.hr.front.service.personnal.SchoolTypeService;
import com.auxgroup.hr.front.site.co.BaseCO;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 学校列表CO
 */
@RestController
@RequestMapping("${auxgroup.hr.contextPath}/school")
public class SchoolTypeCO extends BaseCO {

	private static final Logger logger = LoggerFactory.getLogger(SchoolTypeCO.class);

	@Autowired
	public SchoolTypeService schoolTypeService;



	/**
	 * 获取全部学校数据
	 * @return
	 */
	@GetMapping(value = "/getAll")
	public BaseResponseVO getAll(){
		List<PsCSchoolType> list = schoolTypeService.getAll();
		return buildRespone(list,false);
	}
	
	

}
